.class Lcom/nemustech/regina/DialogCareSecret$1;
.super Ljava/lang/Object;
.source "DialogCareSecret.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/DialogCareSecret;->showSecretDlg(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/DialogCareSecret;

.field final synthetic val$type:I


# direct methods
.method constructor <init>(Lcom/nemustech/regina/DialogCareSecret;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 147
    iput-object p1, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    iput p2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->val$type:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    const v6, 0x7f07007c

    const/4 v5, 0x1

    .line 150
    const-string v2, "DialogCareSecret"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "showSecretDlg() onClick() type="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, p0, Lcom/nemustech/regina/DialogCareSecret$1;->val$type:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 153
    iget v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->val$type:I

    packed-switch v2, :pswitch_data_0

    .line 199
    :goto_0
    return-void

    .line 155
    :pswitch_0
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->getSecretPassword()Ljava/lang/String;

    move-result-object v0

    .line 156
    .local v0, answer:Ljava/lang/String;
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v2

    invoke-static {v2}, Lcom/nemustech/regina/RUtils;->convertIntArrayToString([I)Ljava/lang/String;

    move-result-object v1

    .line 158
    .local v1, submit:Ljava/lang/String;
    invoke-virtual {v0, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v2

    if-nez v2, :cond_0

    .line 159
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 160
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->val$type:I

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->removeDialog(I)V

    .line 161
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2, v5}, Lcom/nemustech/regina/DialogCareSecret;->popDialog(I)V

    goto :goto_0

    .line 164
    :cond_0
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 165
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto :goto_0

    .line 170
    .end local v0           #answer:Ljava/lang/String;
    .end local v1           #submit:Ljava/lang/String;
    :pswitch_1
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v3

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->convertIntArrayToString([I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/DialogCareSecret;->access$202(Lcom/nemustech/regina/DialogCareSecret;Ljava/lang/String;)Ljava/lang/String;

    .line 171
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 172
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/nemustech/regina/ReginaLauncherSettings;->removeDialog(I)V

    .line 173
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/DialogCareSecret;->popDialog(I)V

    goto :goto_0

    .line 176
    :pswitch_2
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$200(Lcom/nemustech/regina/DialogCareSecret;)Ljava/lang/String;

    move-result-object v0

    .line 177
    .restart local v0       #answer:Ljava/lang/String;
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v2

    invoke-static {v2}, Lcom/nemustech/regina/RUtils;->convertIntArrayToString([I)Ljava/lang/String;

    move-result-object v1

    .line 179
    .restart local v1       #submit:Ljava/lang/String;
    invoke-virtual {v0, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v2

    if-nez v2, :cond_1

    .line 180
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 181
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->val$type:I

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->removeDialog(I)V

    .line 182
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$200(Lcom/nemustech/regina/DialogCareSecret;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->setSecretPassword(Ljava/lang/String;)V

    .line 183
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    const-string v3, ""

    invoke-static {v2, v3}, Lcom/nemustech/regina/DialogCareSecret;->access$202(Lcom/nemustech/regina/DialogCareSecret;Ljava/lang/String;)Ljava/lang/String;

    .line 185
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    const v4, 0x7f07007d

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto/16 :goto_0

    .line 189
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v2}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 190
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/DialogCareSecret;->access$300(Lcom/nemustech/regina/DialogCareSecret;[I)V

    .line 191
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->setSecretPassword([I)V

    .line 192
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret$1;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v3}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto/16 :goto_0

    .line 153
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
